package com.huanmeiqi.demo.persistence.address;

/**
 * @author cq.Wang
 * @date 2018/6/15 17:30
 * @description
 */
public class RequestTestUtils {

    public static void test(String requestMethod, String url, int threadNum) {

        for (int i = 0; i < threadNum; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    HttpClientUtils.httpPost("http://localhost:8080/orders/10086", "");
                    HttpClientUtils.httpGet("http://localhost:8080/orders/10086");
                }
            }).start();
        }
    }

    // TODO 同时开多线程请求一个接口、顺序请求多个接口、杂乱请求多个接口

}
